import {createPinia, Pinia} from "pinia";
import piniaPersist from "pinia-plugin-persist"
import init from '@/store/init'

const pinia: Pinia = createPinia()
pinia.use(piniaPersist)
export const resetPinia = () => {
    pinia.state.value = JSON.parse(JSON.stringify(init))
}
resetPinia()
export default pinia